/* Global styles for proper layout */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#app {
  width: 100%;
  height: 100vh;
}

/* App container fills viewport exactly */
.app-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Main content area - fixed height */
.main-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Footer is fixed height */
.icp {
  flex-shrink: 0;
  width: 100%;
}

/* Prevent horizontal scroll on all devices */
* {
  box-sizing: border-box;
}

/* Fix for Naive UI components in cards */
/* Commented out to fix double circle issue in spinners
.n-card__content .n-spin-container {
  display: flex;
  flex-direction: column;
}

.n-card__content .n-spin-content {
  display: flex;
  flex-direction: column;
}
*/

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  html {
    height: -webkit-fill-available;
  }
  
  body {
    min-height: -webkit-fill-available;
  }
}